from django.urls import path
from . import views

urlpatterns = [
    # 文章相关
    path('getList', views.get_article_list, name='get_article_list'),
    path('getHomeList', views.get_home_list, name='get_home_list'),
    path('getDetail', views.get_article_detail, name='get_article_detail'),
    path('doLike', views.do_like_article, name='do_like_article'),
    path('publishPost', views.publish_article, name='publish_article'),
    path('editPost', views.edit_article, name='edit_article'),
    path('deletePost', views.delete_article, name='delete_article'),
    path('search', views.search_articles, name='search_articles'),
    path('getDailyTop', views.get_daily_top_articles, name='get_daily_top_articles'),
    
    # 图片上传相关
    path('uploadImage', views.upload_image, name='upload_image'),
    
    # 图片删除相关
    path('deleteImage', views.delete_image, name='delete_image'),
    
    # 板块相关
    path('getBoard', views.get_boards, name='get_boards'),
]